package com.slavshik.fonts {
	import Class;
	import flash.display.Sprite;
	import flash.system.Security;
	import flash.text.Font;

	/**
	 * @author Alexander Slavshik <as.kvint@gmail.com>
	 * created 15.06.2010
	 */
	public class EmbedFontAsset extends Sprite {
		
		[Embed(source='../../../../fonts/RotondaC.otf', fontName='Rotonda', mimeType='application/x-font', unicodeRange='U+0400-U+04FF,U+0000-U+007F')]
		private var dfont:Class;

		[Embed(source='../../../../fonts/RotondaC-Bold.otf', fontName='Rotonda', fontWeight='bold', mimeType='application/x-font', unicodeRange='U+0400-U+04FF,U+0000-U+007F')]
		private var dfontBold:Class;
		
		public function EmbedFontAsset() {
			
			Security.allowDomain('*');
						
			Font.registerFont(dfont);
			Font.registerFont(dfontBold);
		}
	}
}
